<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>axios基本URL地址设置</title>
	</head>
	<body>
		<script src="../js/axios.js">
			
		</script>
		<script>
			//设定基本的URL地址
			axios.defaults.baseURL="http://localhost:8090"
			axios.post("addUser1",{
				name:"蜈蚣精",
				age:300,
				sex:"男"
			}).then(result =>{
				console.log("插入成功")
				console.log(result.data)
			})
		</script>
	</body>
</html>
